// app/models/user.js
// load the things we need
var mongoose = require('mongoose');

// define the schema for our user model
var repostuserSchema = new mongoose.Schema({

	nickname : String,
	uid :String,
	addTime : Date,
	account : String,
	postID :String,
	send : Number,
	updatetime : Date,
	accountname : String,
	category:String

	});											

// methods ======================
repostuserSchema.index({postID: 1});
repostuserSchema.index({uid: 1});
repostuserSchema.index({addTime: 1});
// create the model for users and expose it to our app
module.exports = mongoose.model('Repostuser', repostuserSchema);
